const path=require('path');
// 导入webpack配置文件合并工具
const merge=require('webpack-merge');
// 导入webpack基础配置
const base=require('./webpack.base.config.js');

module.exports=merge(base,{
    mode:'development',
    // 生成行内的source-map源映射文件, 方便调试
    devtool: 'inline-source-map',
    devServer:{
        // 设置webpack-dev-server的根目录
        contentBase:'./'
    }
})